package com.example.nfctagcommons.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class TimeUtils {
	private static final SimpleDateFormat dateTime = new SimpleDateFormat("dd / MM / yyyy - HH : mm : ss");
	private static final SimpleDateFormat time = new SimpleDateFormat("HH : mm");
	private static final SimpleDateFormat date = new SimpleDateFormat("dd / MM / yyyy"); 
	public static String formatTimeDDMMAAAAHHMM(long timestamp){
		return dateTime.format(new Date(timestamp));
	}
	public static String formatTimeHHMM(long timestamp){
		return time.format(new Date(timestamp));
	}
	public static String formatTimeDDMMAAAA(long timestamp){
		return date.format(new Date(timestamp));
	}
}
